define(function(require, exports, module) {
    "use strict"; 
     var $ = require("$"),
        app = require("dist/application/app"),
        config = app.config,
        method = app.method;
    var echarts = require("dist/echarts/init.js");
    var $distribute_echarts=$("#distribute_echarts"),$flow_echarts=$("#flow_echarts")
    ,$page_echarts=$("#page_echarts"),$distribute_subdivide_echarts=$("#distribute_subdivide_echarts"),
    $flow_subdivide_echarts=$("#flow_subdivide_echarts")
    ;
    $distribute_echarts.length && (function(e) {
        var path = $distribute_echarts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.pie("distribute_echarts", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 

    $flow_subdivide_echarts.length && (function(e) {
        var path = $flow_subdivide_echarts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.line("flow_subdivide_echarts", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 

     $distribute_subdivide_echarts.length && (function(e) {
        var path = $distribute_subdivide_echarts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.pie("distribute_subdivide_echarts", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 

    $flow_echarts.length && (function(e) {
        var path = $flow_echarts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.line("flow_echarts", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 

    $page_echarts.length && (function(e) {
        var path = $page_echarts.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.line("page_echarts", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 
    
  });